Extract better font information from the GTK >= 3.2 font chooser.
authorChong Yidong <cyd@gnu.org>
Wed, 15 Aug 2012 07:58:34 +0000 (15:58 +0800)
committerChong Yidong <cyd@gnu.org>
Wed, 15 Aug 2012 07:58:34 +0000 (15:58 +0800)
commit7d52f99e681a6248e3fbc1fcecdc86375f1a6a7d
tree19626811ba68e5d502b9d9257c442f2f13781acf
parent96cde7bd55c89e3d8aeed39971ef97e5e81ac100
Extract better font information from the GTK >= 3.2 font chooser.

* gtkutil.c (xg_get_font): Rename from xg_get_font_name.  When
using the new font chooser, use gtk_font_chooser_get_font_desc to
extract the font descriptor instead of just the font name.  In
that case, return a font spec instead of a string.
(x_last_font_name): Move to this file from xfns.c.

* xfns.c (Fx_select_font): The return value can also be a font
spec.  Move x_last_font_name management to gtkutil.c.

* xfaces.c: Make font weight and style symbols non-static.

* lisp/frame.el (set-frame-font): Accept font objects.
etc/NEWS
lisp/ChangeLog
lisp/frame.el
src/ChangeLog
src/gtkutil.c
src/gtkutil.h
src/xfaces.c
src/xfns.c